#ifndef RATE_MON_H_INC
#define RATE_MON_H_INC

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define MAX_RECORD_NUM 1000

class RateMon {
protected:
	int		m_pn[MAX_RECORD_NUM];
	DWORD	m_ms[MAX_RECORD_NUM];
	int		m_nextPosi;
	BOOL	m_bFull;

public:
	RateMon(void);
	virtual ~RateMon();

	void	Input(int pn, DWORD ms);
	int		GetAverRate(DWORD intvMs);
};

#endif